<!DOCTYPE html>
<html xmlns:shiro="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="fixed-table-toolbar">
                    <div class="columns pull-left">

                        <div class="col-md-4" style="margin-left: 5px;margin-right: 5px;">
                            <button shiro:hasPermission="system:product:downexcel" type="button"
                                    class="btn  btn-success"
                                    onclick="downexcel()">
                                <i class="fa fa-bar-chart" aria-hidden="true"></i>下载Excel模板
                            </button>
                        </div>

                    </div>
                    <form action="/system/product/uploadexcel" method="post" enctype="multipart/form-data">

                        <div class="columns pull-left col-md-4 nopadding"
                             shiro:hasPermission="system:product:uploadexcel">
                            <input name="file" type="file" class="form-control">
                        </div>
                        <div class="columns col-md-2 pull-left" shiro:hasPermission="system:product:uploadexcel">
                            <button type="submit" class="btn btn-success">上传</button>
                        </div>
                    </form>

                </div>

            </div>
        </div>
    </div>
</div>

<div class="col-md-12">

    <img src="/img/run.jpg" style="margin-left: 44px;width: 600px;margin-top: 40px;">
</div>

<div th:include="include :: footer"></div>


<script type="text/javascript">
    function downexcel() {
        window.location = "/产品Excel模板.xls";
    }
</script>
</body>
</html>